#include <cstdio>
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <sstream>
#include <conio.h>
#include <windows.h>
#define UP 72
#define DOWN 80
#define LEFT 75
#define RIGHT 77
#define HOME 71
#define PGUP 73
#define PGDN 81
#define END 79
#define MINX 1
#define MINY 1
#define MAXX 81
#define MAXY 30
#define DEL 83
using namespace std;

int DeleteLine();
class wordpos
{
public:
	wordpos(vector<string>::iterator __row,int __col,int __lin){
		row = __row;
		col = __col;
		line_num = __lin;
	}
	wordpos(vector<string>::iterator __row,int __col){
		row = __row;
		col = __col;
	}
	vector<string>::iterator row;
	int col;
	int line_num;
};

//extern vector<string> text;
wordpos search(wordpos spos, const char* pattern = "");
int searchSingleLine(int pos,vector<string>::iterator ThisLine,const char* pattern);
